﻿@model Occupie.Models.Student

<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>

@using (Html.BeginForm("FileUpload", "Student", new { id = ViewBag.UserId }, FormMethod.Post,
                            new { enctype = "multipart/form-data" }))
{  
    <label for="file">Качи изображение:</label> 
    <input type="file" name="file" id="file" style="width: 100%;" accept="image/*" /> 
    <input type="submit" value="Качи" class="submit" />     
    <input type="button" id="cancelUpload" value="Отказ" onclick="closeUploadDialog()" />
}

<script>
    $(document).ready(function () {
        $("#files").kendoUpload();
    });

    function closeUploadDialog() {
        $("#uploadDialog").dialog("close");
    }
</script>
